//
//  UITableView+WSExtension.h
//  Component
//
//  Created by 王诗文 on 2018/7/26.
//  Copyright © 2018年 王诗文. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WSTableCellProtocol.h"

@protocol WSTableCellSubViewsActionDelegate<NSObject>
-(void)wsCellSubViewsClickedIndexPath:(NSIndexPath *)indexPath data:(id)cellDeliveryData;
@end




@interface UITableViewCell (WSExtension)<WSTableCellProtocol>

@property(nonatomic, weak)  id<WSTableCellSubViewsActionDelegate>wsDelegate;
@property(nonatomic, strong) NSIndexPath *indexPath;
@property(nonatomic, strong) id attachObj;  //自定义传输参数

- (void)wsSubViewsClickedData:(id)data;

@end




@interface UITableView (WSExtension)

//注册cell
- (void)wsRegisterCellName:(NSString *)name;

//注册headerfooter,继承自UITableViewHeaderFooterView
- (void)wsRegisterHeaderFooterName:(NSString *)name;

@end
